<template>
  <div id="app" style="border: 3px solid #000; margin: 10px">
    <div>我是App组件</div>
    <!-- 1. 给组件标签,添加属性的方式,传值 -->
    <SonBox :title="myTitle"></SonBox>
  </div>
</template>

<script>
import SonBox from "./components/SonBox.vue";
export default {
 
  components: {
    SonBox,
  },
  data () {
    return {
      myTitle: "Hello World"
    }
  }
};
</script>

<style></style>
